package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AsysStudentBenefitExchangeMapper;
import com.ruoyi.system.domain.AsysStudentBenefitExchange;
import com.ruoyi.system.service.IAsysStudentBenefitExchangeService;

/**
 * 学生作业减免权益兑换记录Service业务层处理
 *
 * @author 杨佳霖
 * @date 2025-08-29
 */
@Service
public class AsysStudentBenefitExchangeServiceImpl implements IAsysStudentBenefitExchangeService
{
    @Autowired
    private AsysStudentBenefitExchangeMapper asysStudentBenefitExchangeMapper;

    /**
     * 查询学生作业减免权益兑换记录
     *
     * @param id 学生作业减免权益兑换记录主键
     * @return 学生作业减免权益兑换记录
     */
    @Override
    public AsysStudentBenefitExchange selectAsysStudentBenefitExchangeById(Long id)
    {
        return asysStudentBenefitExchangeMapper.selectAsysStudentBenefitExchangeById(id);
    }

    /**
     * 查询学生作业减免权益兑换记录列表
     *
     * @param asysStudentBenefitExchange 学生作业减免权益兑换记录
     * @return 学生作业减免权益兑换记录
     */
    @Override
    public List<AsysStudentBenefitExchange> selectAsysStudentBenefitExchangeList(AsysStudentBenefitExchange asysStudentBenefitExchange)
    {
        return asysStudentBenefitExchangeMapper.selectAsysStudentBenefitExchangeList(asysStudentBenefitExchange);
    }

    /**
     * 新增学生作业减免权益兑换记录
     *
     * @param asysStudentBenefitExchange 学生作业减免权益兑换记录
     * @return 结果
     */
    @Override
    public int insertAsysStudentBenefitExchange(AsysStudentBenefitExchange asysStudentBenefitExchange)
    {
        return asysStudentBenefitExchangeMapper.insertAsysStudentBenefitExchange(asysStudentBenefitExchange);
    }

    /**
     * 修改学生作业减免权益兑换记录
     *
     * @param asysStudentBenefitExchange 学生作业减免权益兑换记录
     * @return 结果
     */
    @Override
    public int updateAsysStudentBenefitExchange(AsysStudentBenefitExchange asysStudentBenefitExchange)
    {
        return asysStudentBenefitExchangeMapper.updateAsysStudentBenefitExchange(asysStudentBenefitExchange);
    }

    /**
     * 批量删除学生作业减免权益兑换记录
     *
     * @param ids 需要删除的学生作业减免权益兑换记录主键
     * @return 结果
     */
    @Override
    public int deleteAsysStudentBenefitExchangeByIds(Long[] ids)
    {
        return asysStudentBenefitExchangeMapper.deleteAsysStudentBenefitExchangeByIds(ids);
    }

    /**
     * 删除学生作业减免权益兑换记录信息
     *
     * @param id 学生作业减免权益兑换记录主键
     * @return 结果
     */
    @Override
    public int deleteAsysStudentBenefitExchangeById(Long id)
    {
        return asysStudentBenefitExchangeMapper.deleteAsysStudentBenefitExchangeById(id);
    }
}
